package com.qyhl.module_practice.donate.newdonate;

import android.os.Bundle;
import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.gyf.immersionbar.ImmersionBar;
import com.qyhl.module_practice.R;
import com.qyhl.module_practice.R2;
import com.qyhl.webtv.basiclib.base.BaseActivity;
import com.qyhl.webtv.basiclib.base.BaseIViewPresenter;
import com.qyhl.webtv.commonlib.constant.ARouterPathConstant;
import com.qyhl.webtv.commonlib.utils.action.ActionConstant;
import com.qyhl.webtv.commonlib.utils.action.ActionLogUtils;
import com.qyhl.webtv.commonlib.utils.router.RouterManager;

import butterknife.OnClick;

@Route(path = ARouterPathConstant.PRACTICE_DONATE_NEW)
public class PracticeNewDonateListActivity extends BaseActivity {
    @Override
    protected int getContentView() {
        return R.layout.practice_activity_donate_list_new;
    }

    @Override
    protected void setImmersionBar(ImmersionBar mImmersionBar) {
        setDefaultImmerBar();
    }

    @Override
    protected BaseIViewPresenter initBaseIViewPresenter() {
        return null;
    }

    @Override
    protected void init() {

    }

    @Override
    protected void setListener() {

    }


    @OnClick({R2.id.back_btn, R2.id.image_one, R2.id.image_two})
    public void onViewClicked(View view) {
        int id = view.getId();
        if (id == R.id.back_btn) {
            finish();
        } else if (id == R.id.image_one) {
            Bundle bundle = new Bundle();
            bundle.putString("title", "宁夏慈善总会");
            bundle.putString("url", "http://mca.nx.gov.cn/qsdw/nxcszh/jzfs/201907/t20190703_1579719.html");
            bundle.putBoolean("hasShare", false);
            RouterManager.router(ARouterPathConstant.ADV,bundle);
        } else if (id == R.id.image_two) {
            Bundle bundle = new Bundle();
            bundle.putString("title", "贺兰慈善总会");
            bundle.putString("url", "http://wxshare.i2863.com/HeLanDonate/indexDetail.html");
            bundle.putBoolean("hasShare", false);
            RouterManager.router(ARouterPathConstant.ADV,bundle);
        }
    }


    @Override
    protected void onResume() {
        super.onResume();
        ActionLogUtils.getInstance().onResume(this, ActionConstant.PRACTICE_DONATE_LIST);
    }

    @Override
    protected void onPause() {
        super.onPause();
        ActionLogUtils.getInstance().onPause(this, ActionConstant.PRACTICE_DONATE_LIST);
    }
}
